<div class="agent-product">
    <ul class="ui-tab-menu product-tab-menu">
        <li class="current"><a href="{:url('goods/index')}" class="menu2">商品列表</a></li>
    </ul>

    <div class="main-t">
        <!--商品分类-->
        {include file='layout/goodstype' /}
        <!--商品分类结束-->
        <div class="product-table-wrap" style="margin-left: 200px;">
            <div class="table-wrap product-table fitTable">
                <div class="bigimg-content">
                    <ul class="clearfix" id="bigimg-content-ul" style="opacity: 1;">
                        {foreach name="result.rows" item="goods"}
                        <!-- 鼠标移入  bigimg-item-hover-->
                        <!--商品列表-->
                        <li class="bigimg-item ">
                            <div class="bigimg-item-wrapper">
                                <div class="item-img">
                                    <a href="info/ids/{$goods.id}" class="item-link product-href" target="_blank">
                                        <img class="product-img" data-imgurl="https://resource.dinghuo123.com/images/product480x480.png" src="https://resource.dinghuo123.com/images/product480x480.png" alt="" />
                                    </a>
                                </div>
                                <div class="item-perty item-price">
                                    <!--<span> ￥-->
                                    <!--<span class="product-price">100.00</span>-->
                                    <!--</span>-->
                                    <span class="promotion-method2 method2"></span>
                                </div>
                                <div class="item-perty item-name">
                                    <a href="#" target="_blank" class="product-href">{$goods.cname}&nbsp;&nbsp;&nbsp;({if $goods.cate.type == 1}半成品{else}成品{/if})</a>
                                    <span class="lite-red no-product"></span>
                                </div>
                                <!--启用多计量单位：才会出现单位下拉框-->
                                <div class="item-perty item-spec item-spec3 clearfix">
                                    <span class="cgray9 fl">数量</span>
                                    <span class="w75p fr">
                                        <input type="text" class="ui-input cartcount{$goods.id}" autocomplete="off" style="width: 65%;"  value="1"  originalcount="1"  /> <i class="cgray9 ml5">套</i>
                                    </span>
                                </div>
                                <input type="hidden" class="inventory_num" value="11143" />
                                <!-- 接口最终库存值=库存值-预购数 -->
                                <div class="item-perty item-other quantityBox">
                                    <span class="mr30">
                                        <i class="cgray9">起订量</i>
                                        <b class="cgray6">1</b>
                                        <i class="cgray9">套</i>
                                    </span>
                                </div>
                                <div class="item-perty item-btns">
                                    <a href="javascript:;" class="btn-addcart" data-id="{$goods.id}">加入购物车</a>
                                </div>
                            </div>
                        </li>
                        <!--商品结束-->
                        {/foreach}
                    </ul>
                </div>
            </div>
        </div>
        <div class="cb"></div>
        <table>
            <tfoot>
            <tr>
                <td colspan="4">
                    <div class="pager">
                        <div class="page">
                            <div class="page-number">
                                <span>第</span>
                                <input class="ui-pager-inp" type="text" value="{$keyField.page}" autocomplete="off">
                                <span>页</span>
                                <span>共</span><span class="totalPage">{:ceil($result.total / 12)}</span><span>页</span>
                                <div class="pn">
                                    <!--<a href="javascript:void(0);" class="ui-pager-prev">上一页</a>-->
                                    <a href="?{if $keyField.classif}classif={$keyField.classif}&{/if}page={$keyField.page-1}"  class="{$keyField.offset == 0 ? 'hidden':''} ui-pager-prev">上一页</a>
                                    <a href="?{if $keyField.classif}classif={$keyField.classif}&{/if}page={$keyField.page+1}" class="{:ceil($result.total / 12) == $keyField.page ? 'hidden' : ''} ui-pager-next">下一页</a>
                                    <!--<a href="javascript:void(0);" class="ui-pager-next">下一页</a>-->
                                </div>
                            </div>
                        </div>
                        <span class="page-total">共计：{$result.total}条</span>
                    </div>
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>

